package com.zz.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 套餐权益记录对象 user_package_records
 * 
 * @author zz
 * @date 2025-07-06
 */
public class UserPackageRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID，自增主键 */
    private Long recordId;

    /** 关联用户ID，对应sys_user表的user_id */
    @Excel(name = "关联用户ID，对应sys_user表的user_id")
    private Long userId;

    /** 关联学校ID，对应学校表的school_id */
    @Excel(name = "关联学校ID，对应学校表的school_id")
    private Long schoolId;

    /** 关联套餐ID，对应franchise_packages表的package_id */
    @Excel(name = "关联套餐ID，对应franchise_packages表的package_id")
    private Long packageId;

    /** 关联账单ID，对应franchise_bills表的bill_id，可为空表示未生成账单 */
    @Excel(name = "关联账单ID，对应franchise_bills表的bill_id，可为空表示未生成账单")
    private Long billId;

    /** 套餐权益生效开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "套餐权益生效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 套餐权益到期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "套餐权益到期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态：ACTIVE-生效中，EXPIRED-已过期，CANCELLED-已取消 */
    @Excel(name = "状态：ACTIVE-生效中，EXPIRED-已过期，CANCELLED-已取消")
    private String status;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }

    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("schoolId", getSchoolId())
            .append("packageId", getPackageId())
            .append("billId", getBillId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
